class MigrateJobResponseField < ActiveRecord::Migration

  class << self
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # Database create/drop methods
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   
    def up
      add_column(:jobs,:how_to_respond,:text)
      Job.find(:all).each do |job|
        job.how_to_respond = "Employees who are interested in applying for a job posting need to do so within five (5) business days of the posting date. Please see your supervisor or Human Resources Department for further details if you wish to be considered for a position. "
        job.save
      end
      
    end

    def down
      remove_column(:jobs,:how_to_respond)
    end
  end #end class block
end
